﻿<!doctype html>
<html>
	<head>
		<meta charset="utf-8"/>
		<meta name="keywords" content=""/>
		<meta name="description" content=""/>
		<title>520表白</title>
		<script type="text/javascript" src="https://www.xuhxin.cn/file/Personal-home-page/assets/js/shubiao.js"></script>

		<style style="text/css">
			*{margin:0;padding:0;}
			body{background:url("images/1.jpg");background-size:cover;}
			/*start top*/
			.top{width:400px;height:100px;margin:60px auto;font-size:30px;font-family:"华文行楷";color:pink;}
			/*end top*/
			/*start box*/
			.box{width:310px;height:310px;margin:auto;perspective:800px;/*景深*/}
			.box .pic{position:relative;transform-style:preserve-3d;/*3d环境*/ animation:play 10s linear infinite;/*动画名称 执行时间 匀速 无限执行*/}
			.box ul li{list-style:none;position:absolute;top:0;left:0;}
			/*start box*/
			/*定义一个关键帧*/
			@keyframes play{
				from{transform:rotateY(0deg);}
				to{transform:rotateY(360deg);}
			}
			/*start text*/
			#text{width:500px;height:200px;color:pink;margin:auto;font-size:24px;font-family:"方正喵呜体";}
			/*end text*/
		</style>
	</head>
	<body>
		<!--start top-->
		<div class="top">
			<marquee behavior="alternate">我不喜欢这世界 &nbsp;我只喜欢你</marquee>
		</div>
		<!--end top-->
		<!--start box-->
		<div class="box">
			<div class="pic">
				<ul>
					<li><img src="images/12.jpg" width="200px" height="" alt=""/></li>
					<li><img src="images/20241125162331.jpg" width="200px" height="" alt=""/></li>
					<li><img src="images/20241125162429.jpg" width="200px" height="" alt=""/></li>
				</ul>
			</div>
		</div>
		<!--end box-->
		<!--start text-->
		<div id="text"></div>
		<!--end text-->
		<embed src="music.mp3" hidden="true" loop="true"/>
		
		<script src="js/jquery.min.js"></script>
		<!--雪花-->
		<script src="js/snow.js"></script>
		
		<script>
			$(".pic ul li").each(function(i){//遍历
				var deg=360/$(".pic ul li").size();//size个数
				//当前的li对象 添加css样式
				$(this).css({"transform":"rotateY("+deg*i+"deg) translateZ(216px)"});
				
				$.fn.snow({
					minSize:10,
					maxSize:15,
					newOn:500,
					flakeColor:"#ffffff"
				});
			});
			
			var i=0;
			var str="当星河都在变迁，你我却仍天各一边,但请相信,纵使万水千山,日日夜夜我对你的爱与思念从未改变！";
			
			window.onload=function typing(){
				//获取div
				var mydiv=document.getElementById("text");
				mydiv.innerHTML+=str.charAt(i);
				i++;
				var id=setTimeout(typing,100);
				if(i==str.length){
					clearTimeout(id);
				}
			}
		</script>
		<img class="mouse" src="https://www.xuhxin.cn/file/Personal-home-page/123.png" alt="">
		<style>
				*{
				   margin: 0;
				   padding: 0;
				   box-sizing:border-box;
				   cursor: none;           
			   }
	   
			   .mouse{
			   width: 50px;
			   height: 50px;
			   border-radius: 50%;;
			   position: fixed;
			   left: -200px;
			   z-index: 1000;
			   pointer-events: none;
		   }
	   
		   </style>
		   <script>
				var mouse = document.querySelector('.mouse');
		   window.addEventListener('mousemove',function(event){    
			   mouse.style.left = event.clientX - mouse.offsetWidth/2 + 'px' ;
			   mouse.style.top = event.clientY -mouse.offsetHeight/2 + 'px';       
		   })
		   </script>
	</body>
</html>